package com.llc.gulimall.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 使用 RabbitMQ
 * 1、引入依赖
 * 2、容器中自动配置
 * RabbitTemplate  AmqpAdmin CacheingConnectionFactory RabbitMessagingTemplate
 *
 *
 * 解决本地事务的问题
 * 开始asjp动态代理
 *
 * seata支持分布式事务
 *
 * 0.701版本 选择注册中心为nacos
 *
 * 使用seata数据源代理
 */
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableFeignClients
@EnableRedisHttpSession
@EnableRabbit
@SpringBootApplication
public class GulimallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class, args);
    }

}
